// 基于template/src/widgets/{{appEntities}}/{{ctrls@LISTEXPBAR}}-list-exp-bar/{{spinalCase ctrl.codeName}}-list-exp-bar-model.ts.hbs生成
import { IListExpBarModel } from "@/core";

//  获取部件模型
function getModel(): IListExpBarModel {
    return {
        name: "listexpbar",
        caption: "",
        codeName: "ListExpView_layoutlistexpbar",
        cssName: "",
        controlType: "LISTEXPBAR",
        showTitleBar: true,
        title: "",
        toolbarItems: getToolbarItems(),
        entityCodeName: 'IBIZOrder',      
        enableSearch: true,
        lanResTag: "",
        xDataCtrlName: 'listexpbar_list',
        quickSearchPlaceholder: '订单名称,',
        xDataDeCodeName: 'ibizorder',
        xDataDeName: 'IBIZORDER',
        navPSDer: 'n_ibizorderdetails_eq',
        navViewName: 'IBIZOrderDetailGridView9',
        navPSDER: {
        minorCodeName: 'IBIZORDERDETAILS',
        },
        ctrlParams: {
            IBIZOrderlistexpbar_list: {},
            IBIZOrderlistexpbar_toolbar: {},
        },
    }
}

//  部件模型
export const model = getModel();

//  获取工具栏项
function getToolbarItems() {
  return [
    {
  		actionLevel: '100',
  		caption: '编辑',
  		captionLanResTag: 'TBB.TEXT.*.EDIT',
  		name: 'deuiaction3',
  		showCaption: true,
  		tooltip: '编辑',
  		tooltipLanResTag: 'TBB.TOOLTIP.*.EDIT',
  		itemType: 'DEUIACTION',
  		showIcon: true,
  		disabled: false,
  		cssName: '',
  		imagePath: '',
  		iconCls: 'fa fa-edit',
          imagePathX: '',
  		dataAccessAction: '',
  		noPrivDisplayMode: 2,
  		uiAction: {
  			codeName: 'Edit',
  			uIActionMode: 'SYS',
  			actionTarget: 'SINGLEKEY',
  			uIActionTag: 'Edit',
  			uIActionType: 'DEUIACTION'
  		},
          logic: {
          	name: 'listexpbar_toolbar_deuiaction3_click',
          	actionTag: 'Edit',
          	xDataCtrlName: 'listexpbar_list',
          	predefinedType: 'GRIDVIEW_EDITACTION',
          }
    },
  ];
}
